package com.kayang.dd.pojo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Map;

@Data
public class TaskModel extends BaseModel<TaskModel>{

        @NotBlank
        private String unionId;

        private String operatorId;

        private String sourceId;

        @NotBlank
        @Size(max = 1024, message = "subject最大长度1024字节")
        private String subject;

        private String creatorId;

        private String description;

        private long dueTime;

        private String[] executorIds;

        private String [] participantIds;

        /**
         *  {
         *     "appUrl" : "https://www.dingtalk.com",
         *     "pcUrl" : "https://www.dingtalk.com"
         *   }
         * */
        private Map detailUrl;

        private boolean isOnlyShowExecutor;

        /**
         * 10：较低
         *
         * 20：普通
         *
         * 30：紧急
         *
         * 40：非常紧急
         *
         * */
        private int priority;

        /**
         * {
         *     "dingNotify" : "1"
         *   }
         * */
        private Map notifyConfigs;


}
